
/**
 * First we will load all of this project's JavaScript dependencies which
 * includes Vue and other libraries. It is a great starting point when
 * building robust, powerful web applications using Vue and Laravel.
 */

require('./bootstrap');

window.Vue = require('vue');
import Vue           from 'vue';
import VueRouter from 'vue-router';
import router from './components/admin/router';
import axios from 'axios';
Vue.use(VueRouter);

Vue.prototype.$http = axios;
/**
 * Next, we will create a fresh Vue application instance and attach it to
 * the page. Then, you may begin adding components to this application
 * or customize the JavaScript scaffolding to fit your unique needs.
 */
import Notifications from 'vue-notification';

Vue.use(Notifications);

var VueCookie = require('vue-cookie');
// Tell Vue to use the plugin
Vue.use(VueCookie);

import Breabcrumbs from 'vue-2-breadcrumbs';

Vue.use(Breabcrumbs);

//分页
import Paginate from 'vuejs-paginate';
Vue.component('paginate', Paginate);

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//弹框
import VModal from 'vue-js-modal';
Vue.use(VModal);

import Main from './components/admin/main';
Vue.use(Main);

const app = new Vue({
    el: '#app',
    router,
});
